package com.wxb.domain;

import lombok.Data;

/**
 * @Date 2025-05-30 10:28
 * @Version 1.0
 * @Description
 * @ClassName MallRegionEntity
 **/
@Data
public class MallRegionEntity  {//主键
private Integer id;
//父节点
private Integer parentId;
//区域名称
private String name;
//类型 0国家 1省份 2地市 3区县
private Integer type;
//区域代理Id
private Integer agencyId;

public MallRegionEntity(SysRegionEntity regionEntity) {
    id = regionEntity.getId();
    parentId = regionEntity.getParentId();
    name = regionEntity.getName();
    type = regionEntity.getType();
    agencyId = regionEntity.getAgencyId();
}
}
